﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace AppSocketModel
{
    /// <summary>
    /// 企业/公司模型
    /// </summary>
    [BsonIgnoreExtraElements]
    public class CompanyRequestDto
    {
        /// <summary>
        /// 公司Id
        /// </summary>
        [Required(ErrorMessage = "账户Id")]
        public int CompanyId { set; get; }

        /// <summary>
        /// 账户注册码
        /// </summary>
        [Required(ErrorMessage = "账户注册码")]
        public string AccountRegisterCode { set; get; }
        /// <summary>
        /// 公司名称
        /// </summary>
        [Required(ErrorMessage = "公司名称")]
        public string CompanyName { set; get; }

    }
}
